package com.coamctech.xlsunit.beetlsql;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService2Impl implements UserSerivce2 {

	@Autowired
	UserDao userDao;
	
	@Override
	public void addUser(SysUser user) {
		userDao.insert(user,true);

	}

	@Override
	public void modifyUserInfo(Integer id, String password) {
		SysUser user = userDao.unique(id);
		user.setPassword(password);
		userDao.updateById(user);

	}

}
